#! /bin/bash
TODAY=$(date +%Y-%m-%d)

for ((i=14; i>=0; i--));do
	let endtime=$(date -d"$TODAY" +%s)-86400*$i
	date=$(date -d@$endtime +%Y-%m-%d)
	echo $date
done
